const Router = require('koa-router')
const router = new Router()
const koaBody = require('koa-bodyparser');

const home = require('../model/shouye')

router.prefix('/shouye');

router.post('/recommend',koaBody(), async ctx => {
    const numRecommendations =  3; 
    const rows = await home.GETFLASH(numRecommendations);
    ctx.body = rows;
  }
)
module.exports = router